package com.xsh.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

/*role_idbigint(20) NOT NULL
role_namevarchar(100) NULL角色名称
remarkvarchar(100) NULL备注
create_user_idbigint(20) NULL创建者ID
create_timedatetime NULL*/

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Role {

    private Integer roleId;
    private String roleName;
    private String remark;
    private Integer createUserId;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    private List<Integer> menus;
}
